package com.springclouddemo.service.system.client.feign;

import com.springclouddemo.common.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

@FeignClient(name = "demo-repo-system")
public interface ISystemFeign {
    @GetMapping("/test/hello/{name}")
    String hello(@PathVariable("name") String name);
    @GetMapping("/test/say/{name}")
    Response<Map<String, Object>> say(@PathVariable("name") String name);
}
